package com.zhao.dota.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zhao.dota.model.PlayerProcess;
import com.zhao.dota.service.PlayerProcessService;
import com.zhao.dota.struct.Result;
import com.zhao.dota.vo.PlayerProcessVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/process")
public class PlayerProcessController {

    @Resource
    private PlayerProcessService playerProcessService;

    @GetMapping
    public Result<List<PlayerProcessVo>> list(Integer matchId) {
        List<PlayerProcessVo> list = playerProcessService.findByMatchId(matchId);
        return Result.success(list);
    }

}
